package cdp.tarasenko.hellospring;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author( name = Oleksandr_Tarasenko,
 * date = 29.08.13 )
 */
public class Demo {
    public static void main(String[] args) {
        ApplicationContext context =
                new ClassPathXmlApplicationContext("beans.xml");

        HelloSpring obj = (HelloSpring) context.getBean("helloSpring");

        obj.showMessage();
    }
}
